//
//  RegisterViewController.h
//  Palabris
//
//  Created by 822588 on 28.11.12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "Config.h"
#import "SingletonClass.h"

#import "PhotoPickerViewController.h"
#import "MainscreenViewController.h"
#import "RootViewController.h"

#import "ASIFormDataRequest.h"
#import "TouchXML.h"


@interface RegisterViewController : UIViewController <ASIHTTPRequestDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate> {
    
    SingletonClass* sharedSingleton;
    
    IBOutlet UITextField *mTextFieldUsername;
    IBOutlet UIImageView *mImageViewUserPicture;
    
    IBOutlet UIActivityIndicatorView *mActivityIndicatorView;  
    
    ASIFormDataRequest *mRequest;
    CXMLDocument *mXMLDocOfEntitys;
    
}


-(void)initCustom;

/* unused method
-(void) animateTextField: (UITextField*) textField up: (BOOL) up;*/

-(IBAction)goPhotoPicker:(id)sender;
-(IBAction)goMainscreen:(id)sender;
-(IBAction)goRoot:(id)sender;
-(IBAction)getPhotoFromCamera:(id)sender;
-(IBAction)getPhotoFromAlbum:(id)sender;


-(IBAction)textFieldDidBeginEditing:(UITextField *)textField;
-(IBAction)textFieldDidEndEditing:(UITextField *)textField;

@end
